<include file="Public/min-header" />
<script type="text/javascript">
    window.UEDITOR_Admin_URL = "__ROOT__/Public/plugins/Ueditor/";
    var URL_upload = "{$URL_upload}";
    var URL_fileUp = "{$URL_fileUp}";
    var URL_scrawlUp = "{$URL_scrawlUp}";
    var URL_getRemoteImage = "{$URL_getRemoteImage}";
    var URL_imageManager = "{$URL_imageManager}";
    var URL_imageUp = "{$URL_imageUp}";
    var URL_getMovie = "{$URL_getMovie}";
    var URL_home = "{$URL_home}";
</script>
<load href="__ROOT__/Public/plugins/Ueditor/ueditor.config.js" />
<load href="__ROOT__/Public/plugins/Ueditor/ueditor.all.js" />
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default pull-right" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>问题信息</h3>
                </div>
                <div class="panel-body">
                    <form action="{:U('accountant/answer_handle')}" method="post" >
                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td class="col-sm-1 text-right">标题:</td>
                                    <td>
                                        {$info.title}
                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">问题补充:</td>
                                    <td>
                                        {$info.desc}
                                    </td>
                                    <td> </td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">提问者:</td>
                                    <td>
                                        {$info.username}
                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">专业类型:</td>
                                    <td>{:getCatNameStr($info[cat_ids])}</td>
                                    <td></td>
                                </tr>


                                <tr>
                                    <td class="col-sm-1 text-right">截至时间:</td>
                                    <td>
                                        {$info.stop_time|date="Y-m-d H:i:s",###}
                                    </td>
                                    <td></td>
                                </tr>


                                <tr>
                                    <td class="col-sm-1 text-right">是否开启悬赏:</td>
                                    <td>
                                        <if condition="$info.open_reward eq 1">是 (金额：{$info.reward_money})<else />否</if>
                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">阅读量:</td>
                                    <td>
                                        {$info.read_num}
                                    </td>
                                    <td></td>
                                </tr>


                                <tr>
                                    <td class="col-sm-1 text-right">悬赏金额:</td>
                                    <td>
                                        {$info.reward_money}
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="col-sm-1 text-right">问题状态:</td>
                                    <td>{$q_status[$info[question_status]]}</td>

                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="col-sm-1 text-right">回答:</td>
                                    <td>{$a_status[$info[answer_status]]}</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="col-sm-1 text-right">响应时间:</td>
                                    <td>{:cacTime($info[response_sec])}</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="col-sm-1 text-right">提问时间:</td>
                                    <td>
                                        {$info.add_time|date="Y-m-d H:i:s",###}
                                    </td>
                                    <td></td>
                                </tr>

                                <tr><td></td></tr>
                                <tr><td></td></tr>
                                <tr><td></td><td><h3>回复内容</h3></td></tr>
                                <tr>
                                    <td class="col-sm-1 text-right">是否收费查看:</td>
                                    <td>
                                        <input type="radio" name="charge_view" value="0" <if condition="$answer.charge_view eq 0">checked</if> > 否
                                        <input type="radio" name="charge_view" value="1" <if condition="$answer.charge_view eq 1">checked</if>> 是

                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">收费金额:</td>
                                    <td>
                                        <input type="text" class="form-control" name="charge_money" value="{$answer.charge_money}">

                                    </td>
                                    <td></td>
                                </tr>




                                <tr>
                                    <td class="col-sm-1 text-right">回答内容:</td>
                                    <td>
                                        <textarea name="content">{$answer.content}</textarea>

                                    </td>
                                    <td></td>
                                </tr>

                                <tr>
                                    <td class="col-sm-1 text-right">回答时间:</td>
                                    <td>
                                        <input type="text" class="form-control" id="add_time"  name="add_time" value='{$answer.add_time|date="Y-m-d H:i:s",###}'>
                                    </td>
                                    <td></td>
                                </tr>


                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="hidden" value="{$answer.id}" name="id" />
                                        <input type="hidden" value="{$act}" name="act" />
                                        <button type="submit" class="btn btn-info">
                                            <i class="ace-icon fa fa-check bigger-110"></i> 保存
                                        </button>
                                    </td>
                                </tr>
                            </table>

                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<script>

    $(document).ready(function () {

        $('#add_time').daterangepicker({
            format : 'YYYY-MM-DD HH:mm:ss',
            singleDatePicker: true,
            showDropdowns: true,
            timePicker : true,
            timePicker12Hour : false,
            timePickerIncrement : 1, //时间的增量，单位为分钟
            minDate: '2017/08/01',
            maxDate: '2030/01/01',
            locale: {
                applyLabel: '确定',
                cancelLabel: '取消',
                fromLabel: '起始时间',
                toLabel: '结束时间',
                customRangeLabel: '自定义',
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            }
        });
    });

</script>
</body>

</html>
